import React, {Component} from 'react';
import PropTypes from 'prop-types';

class TodoListAdd extends Component {

  constructor(props) {
    super(props);
  }

  static propTypes = {
    _onClick: PropTypes.func.isRequired,
    name: PropTypes.string.isRequired,
    styleButton: PropTypes.object
  }

  static defaultProps = {

  }

  render() {

    return (
      <div>
        <button
          onClick = {this.props._onClick}
          style = {this.props.styleButton}>{this.props.name}</button>
      </div>
    );
  }
}


export default TodoListAdd;